class Student{}
class Teacher{}
public class test {
    public static void func(Object obj){//参数为Object类
        System.out.println(obj);
    }
    public static void main(String[] args) {
        Student stu = new Student();
        Teacher tea = new Teacher();
        func(stu);
        func(tea);
    }
}
